package edu.tms.bean;

import java.util.*;


public class Message {
	/**
	 * 信息id
	 */
	private Integer messageId;

	/**
	 * 所对应的职位
	 */
	private String roleName;

	/**
	 * 学生id
	 */
	private Integer stuId;

	/**
	 * 接受反馈的教师id
	 */
	private Integer tchId;

	/**
	 * 信息内容
	 */
	private String messageContent;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 查看状态 1:未读,2:已读
	 */
	private Integer readingState;

	/**
	 * 信息状态 1:正常,2:冻结
	 */
	private Integer messageState;

	/**
	 * 虚拟字段 教师名字
	 */
	private String tchName;
	
	/**
	 * 虚拟字段 学生名字
	 */
	private String stuName;

	public Message () {
		super();
	}

	public Message (Integer messageId,String roleName,Integer stuId,Integer tchId,String messageContent,Date createTime,Integer readingState,Integer messageState) {
		this.messageId = messageId;
		this.roleName = roleName;
		this.stuId = stuId;
		this.tchId = tchId;
		this.messageContent = messageContent;
		this.createTime = createTime;
		this.readingState = readingState;
		this.messageState = messageState;
	}

	public Integer getMessageId() {
		return this.messageId;
	}

	public String getTchName() {
		return tchName;
	}

	public void setTchName(String tchName) {
		this.tchName = tchName;
	}

	public String getStuName() {
		return stuName;
	}

	public void setStuName(String stuName) {
		this.stuName = stuName;
	}

	public void setMessageId(Integer messageId) {
		this.messageId = messageId;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getStuId() {
		return this.stuId;
	}

	public void setStuId(Integer stuId) {
		this.stuId = stuId;
	}

	public Integer getTchId() {
		return this.tchId;
	}

	public void setTchId(Integer tchId) {
		this.tchId = tchId;
	}

	public String getMessageContent() {
		return this.messageContent;
	}

	public void setMessageContent(String messageContent) {
		this.messageContent = messageContent;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getReadingState() {
		return this.readingState;
	}

	public void setReadingState(Integer readingState) {
		this.readingState = readingState;
	}

	public Integer getMessageState() {
		return this.messageState;
	}

	public void setMessageState(Integer messageState) {
		this.messageState = messageState;
	}

	@Override
	public String toString() {
		return "Message[messageId=" + messageId+ ", roleName=" + roleName + ", stuId=" + stuId + ", tchId=" + tchId + ", messageContent=" + messageContent + ", createTime=" + createTime + ", readingState=" + readingState + ", messageState=" + messageState + "]";
	}


}

